<div id="left-menu" class="column user-menu">
		<% if !session[:user_id].blank? %>
			<% user = User.find(session[:user_id]) %>
	
		<p>
			Willkommen<br />
			<%= link_to "<strong>#{user.name.to_s.humanize}</strong>",
						:controller => :profile,
						:action => :show,
						:id 	=> user.id %>
			(<%= link_to "Abmelden", 
						 :controller => :user,
						 :action => :logout %>)
		</p>
		
		<p>
			<%= link_to_profile user.id,
							    'medium',
							    'float:left; margin-right: 8px;' %>
								
			<span class="user-stats">Fotos: 0</span><br />
			<span class="user-stats">Videos: 0</span><br />
			<span class="user-stats">Freunde: <%= user.friend_count || 0 %></span><br />
			<span class="user-stats">Stammbars: 0</span><br />
			<span class="user-stats">Favoriten: 0</span><br />
		</p>
		
		<br />
		
		<ul>
			
			<li>
				<%= link_to "Mein Profil bearbeiten", 
							:controller => :profile,
							:action => :edit %>
				<br />
				<span class="profile-percentage">
					(<%= number_to_percentage(user.completed, 
					   						  {:precision => 0}) %> 
					fertig)
				</span>
			</li>
			<li class="spacer"></li>
			<li>
				<%= link_to "Mein Stammbars bearbeiten", 
							:controller => :user_bars,
							:action => :list %>
			</li>
			<li class="spacer"></li>
			<li>
				<%= link_to "Freunde einladen", 
							:controller => :invite,
							:action => :show %>
			</li>
			<li class="spacer"></li>
			<li>
				(<%= user.friend_request_count || 0 %>)
				<% if user.friend_request_count.to_i == 1 
					 word_bar = "Stammgast"
				   else
					 word_bar = "Stammg&auml;ste"
				   end
				%>
				<%= link_to word_bar + " wollen dich zum Freund haben.", 
							:controller => :friend,
							:action => :list,
							:id => user.id %>
			</li>
			<li class="spacer"></li>
			<li>
				<%= link_to "Fotos hochladen", 
							:controller => :picture,
							:action => :add,
							:id => user.id %>
			</li>
			<li>
				<%= link_to "Videos hochladen", 
							:controller => :video,
							:action => :add,
							:id => user.id %>
			</li>
		</ul>
				
	<% end %>
	
	<img class="spacer" src="/images/spacer.gif" 
		 alt="Platzhalter" height="200" width="1" />
		 
	<div class="footer">
		<ul>
			
			<li>
				<%= link_to "&Uuml;ber Uns", :controller => :static, 
											 :action => :about_us %>
			</li>
			<li>
				<%= link_to "FAQ", :controller => :static, 
								   :action => :questions %>
			</li>
			<li>
				<%= link_to "Impressum", :controller => :static, 
								   		 :action => :impress %>
			</li>
			<li>
				<%= link_to "Jobs", :controller => :static, 
								   	:action => :jobs %>
			</li>
			<li>
				<%= link_to "Partner", :controller => :static, 
								   	   :action => :partner %>
			</li>
			<li>
				<%= link_to "Presse", :controller => :static, 
								   	  :action => :press %>
			</li>
			
		</ul>
	</div>
		
</div>